package com.qqtech.qquan.activity.dao;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.qqtech.core.frame.dao.BaseDao;
import com.qqtech.qquan.activity.model.ActivityBase;
import com.qqtech.qquan.activity.model.ActivityBaseQuery;
import com.qqtech.qquan.activity.model.ActivityBaseVo;

public interface ActivityBaseDao extends BaseDao<ActivityBase> {
	/**
	 * 关联circle查询
	 * 
	 * @param id
	 * @return
	 */
	List<ActivityBaseVo> queryListByCircle(ActivityBaseQuery query, Pageable pageable);

	/**
	 * 关联circle查询
	 * 
	 * @param id
	 * @return
	 */
	Page<ActivityBaseVo> queryPageByCircle(ActivityBaseQuery query, Pageable pageable);

	/**
	 * 增加点击量
	 * 
	 * @param id
	 * @return
	 */
	int updatePv(Integer id);

	List<ActivityBaseVo> queryActivityByUserId(Integer userId);
}
